public class Client {
    public static void main(String[] args) {
        Component coffee = new ConcreteComponent();//原价10.0
        coffee = new ConcreteDecoratorMilk(coffee);//牛奶5.0
        //coffee = new ConcreteDecoratorCheese(coffee);//芝士8.0

        System.out.println("最终咖啡的价格： " + coffee.cost() + " 元");
    }
}